package com.my.demo.demo2.service;

import com.my.demo.demo2.config.LSConverterFactory;
import com.my.demo.demo2.model.PayModel;
import com.my.demo.demo2.model.ResultModel;
import com.my.demo.demo2.annotation.ParamConvert;
import com.retrofit.starter.annotation.RetrofitClient;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author shanchong
 * @date 2019-07-12
 **/
@RetrofitClient(url="${ls.url}",converterFactory = LSConverterFactory.class)
public interface DemoService {

    @POST(value = "/cgi-bin/lepos_pay_gateway.cgi")
    Call<ResultModel> pay(@ParamConvert(value = "{'merchantId':'merchant_id'}") @Body PayModel payModel);

}
